#include "resuelve.c"

/*
 * Demonstration of Resuelve on a Botball-style course
 *
 * The start and finish points are not designated on the map.
 * Instead, they are programmatically created using the functions
 * resuelve_set_start and resuelve_set_finish, and then the calculated
 * path is shown.
 */

int main ()
{
	// structs for course and solver
	struct ResuelveCourse course;
	struct ResuelveSolver solver;
	
	// load map file into course and solver
	resuelve (&course, &solver, "map.txt");
	// show each step of the path
	resuelve_set_animate_path (&solver, 1);
	// set starting point in left starting box, since no start is designated
	resuelve_set_start (&course, 1, 8);
	// set finishing point in right starting box
	resuelve_set_finish (&course, 33, 1);
	
	// calculate a path between start and finish
	resuelve_calculate_path (&course, &solver);
}
